<?php

/**
 * Created by Reliese Model.
 */

namespace App\Models;

use App\Engine\BaseModel;
use Illuminate\Database\Eloquent\Model;

/**
 * Class EggLog
 *
 * @property int $id
 * @property int $uid
 * @property int $type
 * @property int $num
 * @property int $state
 * @property int $created_at
 * @property int $updated_at
 * @property string|null $qrcode
 *
 * @package App\Models
 */
class EggLog extends BaseModel
{
	protected $table = 'egg_logs';

	protected $casts = [
		'uid' => 'int',
		'type' => 'int',
		'num' => 'int',
		'state' => 'int',
		'created_at' => 'int',
		'updated_at' => 'int'
	];

	protected $fillable = [
		'uid',
		'type',
		'num',
		'state',
		'qrcode'
	];

	public $with=["user"];
}
